<?php
	list($sql,$all_page) = splitPage("`tbl_brand`","1 ORDER BY `brand_id` ASC", 30, $_GET['p']);
	$strPage = fetchPage($all_page,$_GET['p']);
	$query = mysql_query($sql);

	$tp->block('result');
	while($result = mysql_fetch_assoc($query)) {
		$brand_id	= $result['brand_id'];
		$title		= $result['title'];	 
		$date		= formatDate($result['date'], 'd/m/Y');
		$tp->apply();
	}
	mysql_free_result($query);
?>